type Type = 'input' | 'select' | 'password' | 'datepicker'

interface IOptions {
  label: string
  value: string | number
}

export interface IFormItem {
  field: string
  type: Type
  label: string
  rules?: any[]
  placeholder?: any
  // 针对 select
  options?: IOptions[]
  // 针对特殊的属性
  otherOptions?: any
}

export interface IForm {
  formItems: IFormItem[]
  labelWidth?: string
  colLayout?: any
  itemStyle?: any
}
